.class public Lnbisdk/bb;
.super Ljava/lang/Object;


# instance fields
.field private bU:Ljava/lang/String;

.field private bV:I

.field private bW:I

.field private bX:I

.field private bY:I


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public constructor <init>(Ljava/lang/String;III)V
    .locals 6

    const/4 v5, 0x0

    move-object v0, p0

    move-object v1, p1

    move v2, p2

    move v3, p3

    move v4, p4

    invoke-direct/range {v0 .. v5}, Lnbisdk/bb;-><init>(Ljava/lang/String;IIII)V

    return-void
.end method

.method private constructor <init>(Ljava/lang/String;IIII)V
    .locals 2

    const/4 v1, 0x3

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    if-ltz p2, :cond_0

    const/4 v0, 0x2

    if-le p2, v0, :cond_1

    :cond_0
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "routeType is not valid"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_1
    if-ltz p3, :cond_2

    if-le p3, v1, :cond_3

    :cond_2
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "vehicleType is not valid"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_3
    iput-object p1, p0, Lnbisdk/bb;->bU:Ljava/lang/String;

    iput p2, p0, Lnbisdk/bb;->bV:I

    iput p3, p0, Lnbisdk/bb;->bW:I

    iget v0, p0, Lnbisdk/bb;->bW:I

    if-ne v0, v1, :cond_4

    invoke-static {}, Lnbisdk/dn;->cC()Lnbisdk/dn;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lnbisdk/dn;->k(Z)V

    :cond_4
    iput p4, p0, Lnbisdk/bb;->bX:I

    const/4 v0, 0x0

    iput v0, p0, Lnbisdk/bb;->bY:I

    return-void
.end method

.method public static a(Lnbisdk/fk;)Lnbisdk/iv;
    .locals 3

    const-string v0, "code"

    invoke-static {p0, v0}, Lnbisdk/ok;->j(Lnbisdk/fk;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "name"

    invoke-static {p0, v1}, Lnbisdk/ok;->j(Lnbisdk/fk;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    new-instance v2, Lnbisdk/iv;

    invoke-direct {v2, v0, v1}, Lnbisdk/iv;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    return-object v2
.end method

.method private static a(Lnbisdk/ri;Ljava/lang/String;)V
    .locals 2

    new-instance v0, Lnbisdk/ri;

    const-string v1, "avoid"

    invoke-direct {v0, v1, p0}, Lnbisdk/ri;-><init>(Ljava/lang/String;Lnbisdk/ri;)V

    const-string v1, "value"

    invoke-static {v0, v1, p1}, Lnbisdk/ok;->a(Lnbisdk/ri;Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method


# virtual methods
.method public final D(I)V
    .locals 2

    const/4 v1, 0x3

    if-ltz p1, :cond_0

    if-le p1, v1, :cond_1

    :cond_0
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "vehicleType is not valid"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_1
    iput p1, p0, Lnbisdk/bb;->bW:I

    iget v0, p0, Lnbisdk/bb;->bW:I

    if-ne v0, v1, :cond_2

    invoke-static {}, Lnbisdk/dn;->cC()Lnbisdk/dn;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lnbisdk/dn;->k(Z)V

    :cond_2
    return-void
.end method

.method public final aZ()I
    .locals 1

    iget v0, p0, Lnbisdk/bb;->bW:I

    return v0
.end method

.method public final ba()I
    .locals 1

    iget v0, p0, Lnbisdk/bb;->bY:I

    return v0
.end method

.method public final bb()Lnbisdk/ri;
    .locals 3

    new-instance v0, Lnbisdk/ri;

    const-string v1, "route-style"

    invoke-direct {v0, v1}, Lnbisdk/ri;-><init>(Ljava/lang/String;)V

    const/4 v1, 0x4

    invoke-virtual {p0, v1}, Lnbisdk/bb;->wantAvoid(I)Z

    move-result v1

    if-eqz v1, :cond_0

    const-string v1, "hov"

    invoke-static {v0, v1}, Lnbisdk/bb;->a(Lnbisdk/ri;Ljava/lang/String;)V

    :cond_0
    const/4 v1, 0x2

    invoke-virtual {p0, v1}, Lnbisdk/bb;->wantAvoid(I)Z

    move-result v1

    if-eqz v1, :cond_1

    const-string v1, "toll"

    invoke-static {v0, v1}, Lnbisdk/bb;->a(Lnbisdk/ri;Ljava/lang/String;)V

    :cond_1
    const/4 v1, 0x1

    invoke-virtual {p0, v1}, Lnbisdk/bb;->wantAvoid(I)Z

    move-result v1

    if-eqz v1, :cond_2

    const-string v1, "highway"

    invoke-static {v0, v1}, Lnbisdk/bb;->a(Lnbisdk/ri;Ljava/lang/String;)V

    :cond_2
    const/16 v1, 0x8

    invoke-virtual {p0, v1}, Lnbisdk/bb;->wantAvoid(I)Z

    move-result v1

    if-eqz v1, :cond_3

    const-string v1, "unpaved"

    invoke-static {v0, v1}, Lnbisdk/bb;->a(Lnbisdk/ri;Ljava/lang/String;)V

    :cond_3
    const/16 v1, 0x10

    invoke-virtual {p0, v1}, Lnbisdk/bb;->wantAvoid(I)Z

    move-result v1

    if-eqz v1, :cond_4

    const-string v1, "ferry"

    invoke-static {v0, v1}, Lnbisdk/bb;->a(Lnbisdk/ri;Ljava/lang/String;)V

    :cond_4
    const-string v1, "optimize"

    iget v2, p0, Lnbisdk/bb;->bV:I

    packed-switch v2, :pswitch_data_0

    const-string v2, ""

    :goto_0
    invoke-static {v0, v1, v2}, Lnbisdk/ok;->a(Lnbisdk/ri;Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "vehicle-type"

    iget v2, p0, Lnbisdk/bb;->bW:I

    packed-switch v2, :pswitch_data_1

    const-string v2, ""

    :goto_1
    invoke-static {v0, v1, v2}, Lnbisdk/ok;->a(Lnbisdk/ri;Ljava/lang/String;Ljava/lang/String;)V

    return-object v0

    :pswitch_0
    const-string v2, "fastest"

    goto :goto_0

    :pswitch_1
    const-string v2, "easiest"

    goto :goto_0

    :pswitch_2
    const-string v2, "shortest"

    goto :goto_0

    :pswitch_3
    const-string v2, "car"

    goto :goto_1

    :pswitch_4
    const-string v2, "truck"

    goto :goto_1

    :pswitch_5
    const-string v2, "bicycle"

    goto :goto_1

    :pswitch_6
    const-string v2, "pedestrian"

    goto :goto_1

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_2
        :pswitch_1
    .end packed-switch

    :pswitch_data_1
    .packed-switch 0x0
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_6
    .end packed-switch
.end method

.method public final bc()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lnbisdk/bb;->bU:Ljava/lang/String;

    return-object v0
.end method

.method public final getAvoidFeatures()I
    .locals 1

    iget v0, p0, Lnbisdk/bb;->bX:I

    return v0
.end method

.method public final getRouteType()I
    .locals 1

    iget v0, p0, Lnbisdk/bb;->bV:I

    return v0
.end method

.method public final isAuto()Z
    .locals 2

    iget v0, p0, Lnbisdk/bb;->bW:I

    const/4 v1, 0x3

    if-eq v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final isPedestrian()Z
    .locals 2

    iget v0, p0, Lnbisdk/bb;->bW:I

    const/4 v1, 0x3

    if-ne v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final setAvoidFeatures(I)V
    .locals 0

    iput p1, p0, Lnbisdk/bb;->bX:I

    return-void
.end method

.method public final setRouteType(I)V
    .locals 2

    if-ltz p1, :cond_0

    const/4 v0, 0x2

    if-le p1, v0, :cond_1

    :cond_0
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "routeType is not valid"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_1
    iput p1, p0, Lnbisdk/bb;->bV:I

    return-void
.end method

.method public final wantAvoid(I)Z
    .locals 1

    iget v0, p0, Lnbisdk/bb;->bX:I

    and-int/2addr v0, p1

    if-ne v0, p1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method
